package com.jin.config;
import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * Created on 2024/6/5.
 * @Description 德鲁伊数据源配置
 * @author Zhongyuan Jin
 */
@Configuration
public class DruidDataSourceConfig {
    @ConfigurationProperties(value = "spring.datasource")
    @Bean
    public DruidDataSource druidDataSource(){
        DruidDataSource druidDataSource = new DruidDataSource();
        return druidDataSource;
    }
}